package com.example.shushiyunsst.fragment.main.home.recycler.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.parser.Feature;
import  com.alibaba.fastjson.parser.Feature.*;
import com.alibaba.fastjson.parser.ParserConfig;

public class FunEntity implements HomeEntity {

    public FunEntity() {

    }

    public FunEntity(int icon, int title, String pagUri) {

        this.icon = icon;

        this.title = title;

        this.pagUri = pagUri;
    }

    @JSONField(name = "pagUri")
    private String pagUri;

    @JSONField(name = "icon")
    private int icon;

    @JSONField(name = "title")
    private int title;

    @JSONField(name = "spanSiz")
    private int spanSiz;


    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        this.title = title;
    }

    public String getPagUri() {
        if (pagUri==null) pagUri="";
        return pagUri;
    }

    public void setPagUri(String pagUri) {
        this.pagUri = pagUri;
    }

    @Override
    public int getSpanSiz() {
        return spanSiz;
    }

    @Override
    public void setSpanSiz(int spanSiz) {
        this.spanSiz=spanSiz;
    }

    @Override
    public int getItemType() {
        return FUN_TYPE;
    }

    @Override
    public String toString() {
        return "FunEntity{" +
                "icon=" + icon +
                ", title=" + title +
                ", mSpanSiz=" + spanSiz +
                ", pagUri='" + pagUri + '\'' +
                '}';
    }
}
